var app = getApp();
var Util = require('../../utils/util.js')
var Json= require('../../json.js')
Page({
  /**
   * 页面的初始数据
   */
 
  data: {
    parameter: {
      'title': '车辆出入申请',
      'navbar': '1'
    },
    basicServe:[]
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
   
    this.app = getApp()

    let list = [
      {
        id: 1,
        memberNickname: '距结束',
        remainTime: 86400000
      },
    
    ];
    this.setData({
      listData: list
    });
    this.setCountDown();

    if (options.spid) app.globalData.spid = options.spid;
    if (options.scene) app.globalData.code = decodeURIComponent(options.scene);
    var that=this;
    
    wx.getSetting({
      success(res) {
        if (!res.authSetting['scope.userInfo']) {
          that.setData({ 
            window: true,
             });
        }
        // console.log(that.areas)
      }
    });

  

  },


  catchTouchMove: function (res) {
    return false
  },
  onColse:function(){

  },
  onLoad:function(){

  },
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },
  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

    var that = this
  
    //模拟数据
    that.setData({
      apply: Json.default.carAccept
    })
  }
})